/*
 * 版权所有 (C) 2015 知启蒙(ZHIQIM) 保留所有权利。[欢迎加盟知启蒙，一起邂逅框架梦]
 * 
 * https://www.zhiqim.com/gitcan/zhiqim/zhiqim_account.htm
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.zhiqim.account.paycallback;

import org.zhiqim.account.dbo.user.UserTrade;
import org.zhiqim.account.dbo.user.UserTradeAlipay;
import org.zhiqim.account.dbo.user.UserTradeWxpay;

/**
 * 支付回调接口定义
 *
 * @version v1.4.1 @author zouzhigang 2018-4-25 新建与整理
 */
public interface PayCallback
{
    /**
     * 微信支付回调执行
     * 
     * @param wxpay         微信交易对象
     * @throws Exception    可能的异常
     */
    public void call(UserTradeWxpay wxpay)throws Exception;
    
    /**
     * 支付宝支付回调执行
     * 
     * @param alipay        支付宝交易对象
     * @param notify        =true表示通知，=false表示返回
     * @return              返回页
     * @throws Exception    可能的异常
     */
    public String call(UserTradeAlipay alipay, boolean notify)throws Exception;
    
    /**
     * 余额支付回调执行
     * 
     * @param balancePay    余额交易对象
     * @throws Exception    可能的异常
     */
    public String call(UserTrade balancePay)throws Exception;
}
